<?

class Log
{
	static function Error($text)
	{
		Log::Write($text, Sslib::CiteRoot().Sslib::Variable('log.error.path'));
	}
	static function Write($text, $path)
	{
		$f = fopen($path, 'a') or die('Can\'t open log file');
		fwrite($f, date(Sslib::Variable('log.format.date'))."$text\n");
		fclose($f);
	}
}

?>